import { defineConfig } from 'vite'
import dts from 'vite-plugin-dts'

export default defineConfig({
  plugins: [dts()],
  build: {
    minify: true,
    rollupOptions: {
      external: ['vue', 'lodash-es'],
      output: {
        globals: {
          'lodash-es': 'lodash-es',
        },
      },
    },
    lib: {
      entry: './lib/index.ts',
      name: 'index',
      fileName: 'index',
    },
  },
})
